<template>
  <div class="articleitem">
    <van-cell class="article-item" :to="'/article/' + article.id">
      <div slot="title" class="title van-multi-ellipsis--l2">
        {{ article.article_title }}
      </div>
      <div slot="label">
        <div class="label-info-wrap">
          <span>{{ article.article_writer }}</span>
        </div>
      </div>
      <van-image
        slot="default"
        class="right-cover"
        fit="cover"
        :src="article.article_img"
      />
    </van-cell>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    article: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang='less' scoped>
.article-item {
  .title {
    font-size: 14px;
    color: #3a3a3a;
  }

  .van-cell__title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .van-cell__value {
    flex: unset;
    width: 180px;
    height: 100px;
    padding-left: 25px;
  }

  .right-cover {
    width: 100%;
    height: 100px;
  }
}
</style>